package ctn.util.jmesa;

import java.util.Date;

public class DateFormatConstant {
	public static final String DATETIME_ENG = "yyyy/MM/dd HH:mm:ss";
    public static final String DATETIME_CHT = "dd/MM/yyyy HH:mm:ss";
    public static final String DATETIME_CHS = "yyyy-MM-dd HH:mm:ss";
    public static final String DATETIME_WS = "yyyy-MM-dd'T'HH:mm:ss";
    
    public static final String DATETIME_FOR_LOG = "yyyyMMdd HH:mm:ss";

    public static final String DATETIME_WITHOUT_SEPARATOR  = "yyMMddHHmmss";
    public static final String TIME_WITHOUT_SEPARATOR  = "HHmmssSSS";
    // Added by Terence Chan
    public static final String DATETIME_WITHOUT_SEPARATOR_FULL  = "yyyyMMddHHmmss";
    
    //bulk submission batch ID : YYMMDDHHMI
    public static final String DATETIME_BATCH_ID  = "yyMMddHHmmssSSS";
    
    public static final String DATE_ENG = "yyyy/MM/dd";
    public static final String DATE_CHT = "dd/MM/yyyy";
    public static final String DATE_CHT_WITHOUT_SECOND = "dd/MM/yyyy HH:mm";
    public static final String DATE_MMM = "dd-MMM-yy";
    public static final String DATE_MMM_SPACE_SEPARATOR = "dd MMM yyyy";
    public static final String DATE_CHS = "yyyy-MM-dd";
    public static final String DATE_ENG_REG = "\\d{4}/\\d{1,2}/\\d{1,2}";
    public static final String DATE_CHT_REG = "\\d{1,2}/\\d{1,2}/\\d{4}";
    public static final String DATE_CHS_REG = "\\d{4}\\-\\d{1,2}\\-\\d{1,2}";
    public static final String TIME = "HH:mm:ss";
    public static final String TIME_WITHOUT_SECOND = "HH:mm";
    
    public static final String DATETIME_WITHOUT_SECOND = "yyyy-MM-dd HH:mm";
    
    public static final String DATE_NUM = "yyyyMMdd";
    
    // Invitation Letter Date formats
    public static final String SENT_DATE = "yyyy-MM-dd";
    public static final String SENT_DATE_CH = "yyyy\u5e74MM\u6708dd\u65e5";
    //public static final String FROM_DATE_EN = "yyyy/MM/dd";
    //public static final String TO_DATE_EN = "yyyy/MM/dd";
    public static final String FROM_DATE_EN = "dd.MM.yyyy";
    public static final String TO_DATE_EN = "dd.MM.yyyy";
    public static final String FROM_DATE_CH = "yyyy\u5e74MM\u6708dd\u65e5";
    public static final String TO_DATE_CH = "yyyy\u5e74MM\u6708dd\u65e5";

    
    public static final String DATE_CHS_DEFAULT = "yyyy\u5e74M\u6708d\u65e5";
    public static final String DATE_ENG_DEFAULT = "dd-MMM-yyyy";
        
    public static final String TIMESTAMP_CHS_DEFAULT="yyyy\u5e74M\u6708d\u65e5HH:mm";
    public static final String TIMESTAMP_ENG_DEFAULT="dd-MMM-yyyy HH:mm";
    
    //– 
    public static final String TIMESTAMP_GMT_CHS_DEFAULT="yyyy\u5e74M\u6708d\u65e5 HH:mm 'GMT' Z";
    public static final String TIMESTAMP_GMT_CHS_UAM11="yyyy!!!M!!d! HH:mm 'GMT' Z";
    public static final String TIMESTAMP_GMT_ENG_DEFAULT="dd-MMM-yyyy HH:mm 'GMT' Z";
	public static final String GMT_CHS_DEFAULT = "'GMT' Z";
	public static final String GMT_ENG_DEFAULT = "'GMT' Z";
	public static final String DATE_INPUT_MM="dd-MM-yyyy";
	public static final String DATE_INPUT_DD_MM="dd-MM";
	public static final String DATE_INPUT_MM_TIME="dd-MM-yyyy HH:mm:ss";
	public static final Integer MAX_YEAR=2080;
	public static final String DATE_INPUT_MM_TIME_WITHOUT_SECOND = "dd-MM-yyyy HH:mm";
    public static void main(String[] args){
    	System.err.println(DateUtils.formatDateTime(TIMESTAMP_GMT_CHS_DEFAULT, new Date()));
    	System.err.println(DateUtils.formatDateTime(TIMESTAMP_GMT_ENG_DEFAULT, new Date()));
    }
}
